﻿<UserControl x:Class="S7.UserControls.Chair"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="200" Width="200">
	<UserControl.Resources>
			<Storyboard x:Key="sbChairGrow">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Customer1" Storyboard.TargetProperty="(FrameworkElement.Width)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="200"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Customer1" Storyboard.TargetProperty="(FrameworkElement.Height)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="200"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel_Copy" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="sbChairGrowRev">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Customer1" Storyboard.TargetProperty="(FrameworkElement.Width)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="75"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="Customer1" Storyboard.TargetProperty="(FrameworkElement.Height)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="75"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="stackPanel_Copy" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Key="sbBubbleFadeIn" AutoReverse="True">
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:01:00" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="tbBubbleMessage" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:01:00" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
			<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="path1" Storyboard.TargetProperty="(UIElement.Opacity)">
				<SplineDoubleKeyFrame KeyTime="00:00:00.3000000" Value="1"/>
				<SplineDoubleKeyFrame KeyTime="00:01:00" Value="0"/>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
	</UserControl.Resources>
	<UserControl.Triggers>
		<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="Customer1">
			<BeginStoryboard Storyboard="{StaticResource sbChairGrow}"/>
		</EventTrigger>
		<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="Customer1">
			<BeginStoryboard x:Name="sbTableGrowRev_BeginStoryboard1" Storyboard="{StaticResource sbChairGrowRev}"/>
		</EventTrigger>
	</UserControl.Triggers>
			<Grid x:Name="Customer1" Width="75" Height="75">
						<Grid.ContextMenu>
				<ContextMenu>
					<MenuItem Header="Sign out" Foreground="Black" Click="SignCustomerOut_Click"/>
					<MenuItem Header="Show orders" Foreground="Black" Click="ShowOrders_Click"/>
				</ContextMenu>
			</Grid.ContextMenu>
				<Path x:Name="path" Fill="#FFE2E2E2" Stretch="Fill" Stroke="Black" StrokeEndLineCap="Flat" StrokeLineJoin="Miter" StrokeMiterLimit="4" StrokeStartLineCap="Flat" StrokeThickness="0.5" Margin="-46.533,-90.949,-79.814,25" Data="M287.6895,401.207L311.8415,401.207L311.8415,385.029L277.9945,385.029L277.9945,401.207L283.2375,401.207C283.2375,405.684,285.0875,408.139,288.7855,408.573C287.5515,407.599,286.9345,406.186,286.9345,404.336C286.9345,403.118,287.1865,402.075,287.6895,401.207z" Opacity="0"/>
				<TextBlock x:Name="tbBubbleMessage" Margin="-38.283,-73.949,-68.717,0" FontSize="13.333" Text="UserKaza wants something urgent" TextWrapping="Wrap" VerticalAlignment="Top" Height="61.5" Opacity="0"/>
				<Ellipse x:Name="eChair" Stroke="Black" Fill="{DynamicResource bOffline}"/>
				<StackPanel x:Name="stackPanel_Copy" VerticalAlignment="Center" Opacity="0" Orientation="Vertical">
					<TextBlock x:Name="tbInfo1" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="26.667" FontWeight="Bold" TextWrapping="Wrap"/>
					<TextBlock x:Name="tbInfo2" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="26.667" FontWeight="Bold"/>
					<TextBlock x:Name="tbInfo3" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="26.667" FontWeight="Bold"/>
					<TextBlock x:Name="tbInfo4" TextWrapping="Wrap" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="26.667" FontWeight="Bold"/>
				</StackPanel>
				<Path x:Name="path1" Fill="#FFE2E2E2" Stretch="Fill" StrokeEndLineCap="Flat" StrokeLineJoin="Miter" StrokeMiterLimit="4" StrokeStartLineCap="Flat" StrokeThickness="0.5" Margin="-15.421,5.559,0,25" Data="M287.6895,401.207 L283.2375,401.207 C283.2375,405.684 285.0875,408.139 288.7855,408.573 287.5515,407.599 286.9345,406.186 286.9345,404.336 286.9345,403.118 287.1865,402.075 287.6895,401.207 z" HorizontalAlignment="Left" Width="33.421" Panel.ZIndex="9999" Opacity="0"/>
			</Grid>

</UserControl>
